package com.jizhangben.service;

import com.jizhangben.dao.UserDaoImpl;
import com.jizhangben.pojo.UserPojo;

public class UserService {
    private UserDaoImpl userDaoImpl = new UserDaoImpl();

    public UserPojo login(String userId, String loginPassword) {
        return userDaoImpl.login(userId, loginPassword);
    }

    public int register(String userId, String userName, String userPwd) {
        return userDaoImpl.register(userId, userName, userPwd);
    }

    public UserPojo findByUserId(String userId) {
        return userDaoImpl.findByUserId(userId);
    }
}
